package com.nativetalk.dao;

import com.nativetalk.bean.ranking.TdNtWeekRankingListInsert;

import java.util.List;
import java.util.Map;

/**
 * Created by lizhun on 16/8/24.
 */
@MyBatisRepository
public interface TdNtWeekRankingListDao {

    /**
     * @Purpose  查找学生排行榜
     * @version  3.2
     * @author   lizhun
     * @return   List<TdNtWeekRankingListInsert>
     */
    public List<TdNtWeekRankingListInsert> searchTdNtTeacherListPage(int week_type);
    /**
     * @Purpose  查找教师排行榜
     * @version  3.2
     * @author   lizhun
     * @return   List<TdNtWeekRankingListInsert>
     */
    public List<TdNtWeekRankingListInsert> searchWeekRakingListPage(int week_type);
    /**
     * @Purpose  添加周学习分钟统计
     * @version  3.2
     * @author   lizhun
     * @return   void
     */
    public void intsertWeekRakingList(TdNtWeekRankingListInsert tdNtWeekRankingListInsert);
    /**
     * @Purpose  根据添加时间查找是否由用户的记录
     * @version  3.2
     * @author   lizhun
     * @return   TdNtWeekRankingListInsert
     */
    public TdNtWeekRankingListInsert findTdNtWeekRankingListByMembId(TdNtWeekRankingListInsert tdNtWeekRankingListInsert);
    /**
     * @Purpose  查询用户上周学习数据
     * @version  3.2
     * @author   lizhun
     * @return   TdNtWeekRankingListInsert
     */
    public TdNtWeekRankingListInsert findTdNtWeekRankingByMembId(Map<String,Integer> map);
    /**
     * @Purpose  查询上周第三名学习数据
     * @version  3.2
     * @author   lizhun
     * @return   int
     */
    public int findThreeStudySize(int week_type);
    /**
     * @Purpose  更新奖励状态
     * @version  3.2
     * @author   lizhun
     * @return   void
     */
    public void update(TdNtWeekRankingListInsert tdNtWeekRankingListInsert);
}
